package com.onesports.intelligent.k12.polarlight.domain.dto.sys;

import com.onesports.framework.kit.common.valid.Length;
import com.onesports.framework.kit.common.valid.NotEmpty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author Wsy
 **/
@Data
@ApiModel("角色DTO")
public class RoleDTO {

    @ApiModelProperty("角色id,修改时传")
    private String id;

    @ApiModelProperty(value = "角色名称", required = true)
    @Length(max = 20,message = "角色名称字数最多支持20字")
    @NotEmpty(message = "请输入角色名称")
    private String roleName;

    @ApiModelProperty(value = "菜单权限ids", required = true)
    @NotEmpty(message = "菜单权限不可为空")
    private List<String> menuIds;

    @ApiModelProperty("是否超管 true:是 FALSE：否，不要传")
    private Boolean isSuper;

    @ApiModelProperty(value = "数据权限ids")
    private List<String> dataScopeIds;

    @ApiModelProperty(value = "是否查询全部",hidden = true)
    private Boolean wholeData = false;
}
